Print the DRAM bank size in MiB instead of GiB in case the bank size
is smaller than 1 GiB. This prevents printing zeroes on systems with
small DRAM sizes.
Signed-off-by: Marek Vasut <[email protected]>
if (!size)
continue;
- NOTICE("BL2: CH%d: %llx - %llx, %lld GiB\n",
- chan, start, start + size - 1, size >> 30);
+ NOTICE("BL2: CH%d: %llx - %llx, %lld %siB\n",
+ chan, start, start + size - 1,
+ (size >> 30) ? : size >> 20,
+ (size >> 30) ? "G" : "M");
}
/*